package icu.thatyear.main.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 产品类目
 * </p>
 *
 * @author Cjy
 * @since 2024-12-06
 */
@Getter
@Setter
@TableName("tz_category")
@Schema(name = "TzCategory", description = "产品类目")
public class TzCategory implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "类目ID")
    @TableId(value = "category_id", type = IdType.AUTO)
    private Long categoryId;

    @Schema(description = "店铺ID")
    @TableField("shop_id")
    private Long shopId;

    @Schema(description = "父节点")
    @TableField("parent_id")
    private Long parentId;

    @Schema(description = "产品类目名称")
    @TableField("category_name")
    private String categoryName;

    @Schema(description = "类目图标")
    @TableField("icon")
    private String icon;

    @Schema(description = "类目的显示图片")
    @TableField("pic")
    private String pic;

    @Schema(description = "排序")
    @TableField("seq")
    private Integer seq;

    @Schema(description = "默认是1，表示正常状态,0为下线状态")
    @TableField("status")
    private Integer status;

    @Schema(description = "记录时间")
    @TableField("rec_time")
    private LocalDateTime recTime;

    @Schema(description = "分类层级")
    @TableField("grade")
    private Integer grade;

    @Schema(description = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;
}
